package com.zkjl.protect_business.service;

import com.zkjl.protect_business.dto.BusinessTrainingDTO;
import com.zkjl.protect_business.dto.PageDTO;
import com.zkjl.protect_business.entity.BusinessTraining;
import org.springframework.data.domain.PageImpl;

public interface BusinessTrainingService {


    /**
     * 保存业务培训
     * @param businessTrainingDTO
     * @return
     */
    BusinessTraining save(BusinessTrainingDTO businessTrainingDTO);

    /**
     * 业务培训列表
     *
     * @param pageDTO
     * @param search
     * @return
     */
    PageImpl page(PageDTO pageDTO, String search, String type, Long startTime, Long endTime);


    /**
     * 删除业务培训
     * @param id
     * @return
     */
    Boolean del(String id);


    /**
     * 获取业务培训信息
     * @param id
     * @return
     */
    BusinessTraining get(String id);


}
